package com.company.demo12;

import java.util.Arrays;

public class TestHashTable {

    public static void main(String[] args) {
        StuInfo s1 = new StuInfo(16,3);
        StuInfo s2 = new StuInfo(17,11);
        StuInfo s3 = new StuInfo(18,23);
        StuInfo s4 = new StuInfo(19,24);
        StuInfo s5 = new StuInfo(20,9);

        HashTable ht = new HashTable();
        ht.put(s1);
        ht.put(s2);
        ht.put(s3);
        ht.put(s4);
        ht.put(s5);

        System.out.println(ht);

        //获取的目标数据
        StuInfo target = new StuInfo(18);
        StuInfo stuInfo = ht.get(target);
        System.out.println(stuInfo);

    }

}
